﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;

namespace Efcore.MultiTenant.DbProvider
{
    public interface IConnectionResolve
    {
        /// <summary>
        /// 租户请求信息
        /// </summary>
        public TenantInfo TenantInfo { get; set; }

        /// <summary>
        /// 多租户类型
        /// </summary>
        TenantType TenantType { get; }

        /// <summary>
        /// 数据类型
        /// </summary>
        DbType DbType { get;}

        /// <summary>
        /// 当前域数据库连接字符串
        /// </summary>
        string ConnectionString { get; }
    }

    public interface IConnectionResolve<TDbContext> : IConnectionResolve where TDbContext : BaseDbContext { }
}
